New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@citation-js/plugin-wikidata

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@citation-js/plugin-wikidata

Plugin for Wikidata for Citation.js

  • 0.7.18
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
921
decreased by-36.61%
Maintainers
1
Weekly downloads
 
Created
Source

@citation-js/plugin-wikidata

Plugin for Wikidata for Citation.js.

NPM version NPM total downloads License Dependency status

Install

npm install @citation-js/plugin-wikidata

Usage

Register by importing the package:

require('@citation-js/plugin-wikidata')

Formats

Formats and other features added by this plugin.

Input

This plugin accepts Wikidata IDs in the following formats:

  • @wikidata/id: single ID
  • @wikidata/list+text: whitespace- or comma-delimited list of IDs
  • @wikidata/api: API URL
  • @wikidata/url: entity URL
  • @wikidata/list+object: array of IDs

API responses (@wikidata/object) are also supported. Additionally, this plugin exposes input parsing methods concerning individual properties and types, under the types @wikidata/prop and @wikidata/type.

Configuration

Input languages can be specified:

const {plugins} = require('@citation-js/core')

const config = plugins.config.get('@wikidata')

config.langs // ['en']
config.langs = ['fr', 'de', 'en'] // searches for French, then German then English labels

Keywords

FAQs

Package last updated on 28 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc